//用户等级
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//分页
export function userLevelPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/userLevel/page`,
    method: "get",
    params
  });
}
//创建
export function userLevelCreate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/userLevel/create`,
    method: "post",
    data
  });
}
//修改
export function userLevelUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/userLevel/update`,
    method: "post",
    data
  });
}
//折扣设置
export function userLevelUpdateDiscount(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/userLevel/updateDiscount`,
    method: "post",
    data
  });
}
//删除
export function userLevelDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/userLevel/delete`,
    method: "post",
    data
  });
}
//详情
export function userLevelDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/userLevel/detail`,
    method: "get",
    params
  });
}
//list集合
export function userLevelList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/userLevel/list`,
    method: "get",
    params
  });
}
